package smlab.utils
{
	import flash.display.DisplayObject;
	import flash.filters.DropShadowFilter;
	
	/**
	 * 滤镜
	 * @author simon
	 * 
	 */
	public class ShadowFilter
	{
		public function ShadowFilter()
		{
		}
		
		public function setShadowFilter(displayObj:DisplayObject,distance:Number = 4.0, angle:Number = 45, color:uint = 0, alpha:Number = 1.0, blurX:Number = 4.0, blurY:Number = 4.0, strength:Number = 1.0, quality:int = 1, inner:Boolean = false, knockout:Boolean = false, hideObject:Boolean = false):void
		{
    		var myFilter:DropShadowFilter = new DropShadowFilter (distance, angle, color, alpha, blurX, blurY, strength,quality, inner, knockout,hideObject)
			var a:Array=displayObj.filters;
			a.push(myFilter);
			displayObj.filters=a;
		}

	}
}